home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
text
/
xes.lha
/
XES
/
REXX
/
Compile.xdme
< prev
next >
Wrap
Text File
|
1995-08-01
|
508b
|
24 lines
/* $VER: Compile.xdme 1.0 (01 Aug 1995) */
/* Copyright © 1995 Fergus Duniho */
OPTIONS RESULTS
ADDRESS 'XDME.1'
'rxresult $filename'
F = result
D = Lastpos(".", F)
N = '"' || Delstr(F, D) || '"'
Ext = Delstr(F, 1, D)
F = '"' || F || '"'
SELECT
WHEN Ext = "c" THEN C = "bin:gcc" F "-Wall -o" N
WHEN Ext = "cc" THEN C = "bin:gcc" F "-Wall -lg++ -o" N
WHEN Ext = "e" THEN C = "EC >t:err" N
OTHERWISE EXIT
END
C = '(' || C || ')'
'title' C
'execute' C
'title (Compiling finished or halted.)'